<template>
  <div v-if="history == 1" style="position:fixed;top:0.15rem;left:0.15rem;z-index:10000;">
    <img @click="skipHome" src="/static/backhome.png" style="width: 0.38rem;height:0.38rem;object-fit: cover;"/>
  </div>
</template>
<script>
  import utils from '../utils'
  import httputil from '../httputil'
  export default {
    props: ['enter'],
    data() {
      return {
        history:window.history.length
      }
    },
    mounted() {

    },
    computed: {},
    methods: {
      skipHome() {
        this.$vuet.getModule(this.enter).needFetch = false
        this.$router.push({name: 'home'})
      }
    }
  }

</script>
<style>

</style>
